﻿<?php header("Access-Control-Allow-Origin: *"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>URLForce - Free Dowload</title>
<link href="styles.css" rel="stylesheet" type="text/css"/>
<script type="javascript">
</script>
</head>
<body>
<div id="main">		
	<div id="minisearch">
		<div id="minisearchcontent">
		<form action="/urlforce/urlanalizer.php" method="get">
		<?php require('workinghard.php');
			ini_set('zlib.output_compression', 0);
			ini_set('implicit_flush', 1);
			ini_set('allow_url_fopen', 'On');
			
			$strURL = $_GET['url'];
		?>
			<a href="http://tagmedia.com.br/urlforce/index.html">
			<img border="0" src="images/logo_sresult.gif" width="144" height="29"/>
			</a>
			<input type="text" name="url" value="<?php echo $strURL ?>"/>
			<input type="submit" value=""/>
		</div>
		<div id="serversresult">
			<ul>
				<li>
					<input type="checkbox" id="mega" name="mega"/>							
					<label for="mega">
					<img src="images/logo_mega_org.gif" width="137" height="14"/>
					</label>
				</li>
				<li>
					<input type="checkbox" id="serve" name="serve"/>
					<label for="serve">
					<img src="images/logo_fileserve_org.gif" width="65" height="14"/>
					</label>
				</li>
				<li>
					<input type="checkbox" id="rapid" name="rapid"/>
					<label for="rapid">
					<img src="images/logo_rapidshare_org.gif" width="108" height="14"/>
					</label>
				</li>
				<li>
					<input id="sonic" type="checkbox" name="sonic"/>
					<label for="sonic">
					<img src="images/logo_filesonic_org.gif" width="138" height="14"/>
					</label>
				</li>
			</ul>
		</div>
	</div>
	<div id="result">
	
		<?php
		$arrServidores = array();
		$intIndice = 'todos';

		if(isset($_GET['mega']))
			$arrServidores[] = 'mega';
		if(isset($_GET['serve']))
			$arrServidores[] = 'serve';
		if(isset($_GET['rapid']))
			$arrServidores[] = 'rapid';
		if(isset($_GET['sonic']))
			$arrServidores[] = 'sonic';
			
		if(isset($_GET['indice']))
			$intIndice = $_GET['indice'];

		$arrURLs = findURLDowload($strURL); 
		if($arrURLs != false) {
		?>

		<span class="text-title">
			<br><br>
			Filter by<br>
			</span>
			<span class="text-simple">
			- Link number <input type="text" name="indice"/>
			</span>
			<input type="submit" value=""/><br><br>
			</form>
			<span class="text-title">Cheat link blockers</span><br>
			<span class="text-simple">
			- Time may change depending on the complexity of the links protection<br>
			- You can already use the links that appear while we work<br><br>
		</span>
		
		<?php
			listURLDownload($arrURLs, $arrServidores, $intIndice); }
		?>
		
	</div>
</div>
</body>
</html>